home *** CD-ROM | disk | FTP | other *** search
- Path: news.iadfw.net!usenet
- From: Larry Weiss <lfw@iadfw.net>
- Newsgroups: comp.lang.c
- Subject: Re: Basic I/O help, please
- Date: Sat, 02 Mar 1996 18:43:14 -0600
- Organization: ...
- Message-ID: <3138EB22.70CA@iadfw.net>
- References: <4h06lg$b9j@news.aimnet.com>
- NNTP-Posting-Host: dal22-10.ppp.iadfw.net
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0 (Win16; I)
-
- Smothra wrote:
- >
- > I'm having a little trouble with the mixing and matching of various
- > standard library I/O functions. In general, the mixture of scanf(),
- > getc() and getch() seem to do me in after a number of function calls.
- > Without responding to the specifics (which I won't post unless someone
- > offers to read 'em over in which case I'll eMail ya), can anyone tell
- > me if there are some genral rules about how to mix and match I/O
- > functions (particularly the I's). Are there any standard pitfalls of
- > which I should be aware? The problem seems to be related to
- > encountering an EOF that is at the end of a non-blank line.
- >
-
- We'll need to see some specific code. One reality of C is that the Standard
- library was not designed altogether at one time, or by one designer, so there
- may be situations where you just have to learn by rote how to use suites of
- calls in conjunction.
-